home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: quotes in sscanf() ????????????
- Date: 13 Mar 96 22:39:21 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.826756761@rscernix>
- References: <4i757h$pkc@jeeves.niehs.nih.gov>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <4i757h$pkc@jeeves.niehs.nih.gov> duling@niehs.nih.gov (Dave Duling) writes:
-
-
- >Hi. I need to read in ASCII files of the for:
- ^^^^^
- The character set is irrelevant to your problem.
-
- >#.##,"string with , commas and spaces ", etc....
- >
- >so the delimiter is a comma, the string is bound by quotes and contains both
- >commas and spaces (but no other quotes). So I've played around endlessly with
- >this but have not found the answer. I could write a special function but it
- >would be more eloquent with a standard IO call to sscanf()....
-
- Then, just use [fs]scanf(). If you don't know how, open your C book.
- You'll find the answer there.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-